home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / os2 / splot170.zip / SPLOT.H < prev    next >
C/C++ Source or Header  |  1996-08-29  |  4KB  |  189 lines

  1. /* splot.h */
  2.  
  3. #ifndef SPLOT_H 
  4. #define SPLOT_H
  5.  
  6. #define VERSION 2.3.7
  7.  
  8.  
  9. /* general defines */
  10. #define OFF 0
  11. #define ON 1
  12. #define TRUE 1
  13. #define FALSE 0
  14. #define PI 3.141592654                        
  15.  
  16. /* define line styles */
  17. #define SOLID 0
  18. #define DASHED 1.0,0.5
  19. #define DOTTED 0.2,0.2
  20. #define DOTDASH 1.0,0.5,0.2,0.5
  21.  
  22. /* page size in cm */
  23. #define XLENGTH 20.00
  24. #define YLENGTH 26.00
  25.  
  26. /* define graphics draw op */
  27. #define REP 0
  28. #define AND 0x08
  29. #define OR 0x10
  30. #define XOR 0x18
  31.  
  32. /* define colours */
  33. #define INVIS -1
  34. #define BLACK 0 
  35. #define BLUE 1
  36. #define GREEN 2
  37. #define CYAN 3
  38. #define RED 4
  39. #define MAGENTA 5
  40. #define BROWN 6
  41. #define WHITE 7
  42.  
  43. /* define the axes lables */
  44. #define LOWER 0
  45. #define BOTTOM 0
  46. #define UPPER 2
  47. #define TOP 2
  48. #define LEFT 1
  49. #define RIGHT 3
  50. #define XAXES 4
  51. #define YAXES 5
  52. #define XYAXES 6
  53.  
  54. #define CENTER 4
  55. #define XCENTER 1.7e308
  56. #define YCENTER 1.7e308
  57.  
  58. /* define axes types */
  59. #define LINEAR 0x11
  60. #define LOGX 0x12
  61. #define LOGY 0x21
  62. #define LOGLOG 0x22
  63. #define INVX 0x14
  64. #define INVY 0x41
  65. #define INVINV 0x44
  66. #define INVXLOGY 0x24
  67. #define LOGXINVY 0x42
  68.  
  69. /* define line cap styles */
  70. #define BUTTCAP 0
  71. #define ROUNDCAP 1
  72. #define PROJCAP 2
  73.  
  74. /* define line join styles */
  75. #define MITERJOIN 3
  76. #define MITREJOIN 3
  77. #define ROUNDJOIN 4
  78. #define BEVELJOIN 5
  79.  
  80. /* define fill rules */
  81. #define NONZWIND 0
  82. #define EVENODD 1
  83.  
  84. /* define devices */
  85. #define DISPLAY 0
  86. #define LASERJET 2
  87. #define PAINTJET 3
  88. #define PCXFILE 4
  89. #define HP500 5
  90. #define HP500C 6
  91. #define OS2PMPRINT 7
  92. #define EPSFILE 8
  93. #define METAFILE 9
  94. #define BMPFILE 10
  95.  
  96. /* define which vals for errorbars */
  97. #define XVALS 0
  98. #define YVALS 1
  99.  
  100. /* define ALL_Y for use with plodata */
  101. #define ALL_Y -1
  102.  
  103. /* define default font info */
  104. #define CELL_WIDTH        0.7       /* default font width */
  105. #define CELL_ASPECT       2.0       /* default font height/width ratio */
  106. #define CELL_SPACING      2.0
  107.  
  108. #define NFONTS        7             /* number of available fonts */
  109. #define NORMALTEXT    0             /* for use with array of font pointers */
  110. #define ROMAN_S       1
  111. #define ROMAN_C       2
  112. #define GREEK_S       3
  113. #define GREEK_C       4
  114. #define ITALIC_C      5
  115. #define SYMBOL_S      6
  116. #define SIMPLEX       0
  117. #define COMPLEX       1
  118.  
  119. /* define symbol names */
  120. #define OCIRCLE 0
  121. #define OSQUARE 1
  122. #define OTRIANGLE 2
  123. #define ODIAMOND 3
  124. #define OSTAR 4
  125. #define OARROW 5
  126. #define PLUS 6
  127. #define CROSS 7
  128. #define MULT 8
  129. #define CIRCLE 9
  130. #define SQUARE 10
  131. #define TRIANGLE 11
  132. #define DIAMOND 12
  133. #define STAR 13
  134. #define ARROW 14
  135.  
  136. /* define plot types */
  137. #define LINES 0
  138. #define SYMBOLS 1
  139. #define SYM_LINES 2
  140.  
  141. /* define set options */
  142. #define AXESCLIP        0 
  143. #define AXESTYPE        1 
  144. #define CURSYMBOL       2 
  145. #define FILLRULE        3 
  146. #define FLATNESS        4 
  147. #define FONT            5 
  148. #define FONTASPECT      6 
  149. #define FONTDIR         7 
  150. #define FONTMULT        8 
  151. #define FONTSPACE       9 
  152. #define FONTWIDTH       10
  153. #define LABELMARG       11
  154. #define LINECAP         12
  155. #define LINECOLOUR      13
  156. #define LINEJOIN        14
  157. #define LINESTYLE       15
  158. #define LINEWIDTH       16
  159. #define MITERLIMIT      17
  160. #define PAGEROT         18
  161. #define PATTOFF         19
  162. #define PLOTTYPE        20
  163. #define SCALEALL        21
  164. #define SCRIPTSCALE     22
  165. #define SCRIPTSHIFT     23
  166. #define SYMMULT         24
  167. #define TICKLMARG       25
  168. #define TICKLENGTH      26
  169. #define XMULT           27
  170. #define XRANGE          28
  171. #define XSHIFT          29
  172. #define YMULT           30
  173. #define YRANGE          31
  174. #define YSHIFT          32
  175.  
  176.  
  177. #define LINECOLOR       13
  178. #define MITRELIMIT      17
  179. #define PAGE_ROT        18
  180.  
  181. /* aliases for old commands */
  182. #define tabdata readdata
  183. #define hputs text
  184.  
  185. #endif
  186.  
  187. /* splot.h */
  188.  
  189.